<template>
    <div>
        {{goodslist}}
    </div>
</template>

<script>
    export default {
        data(){
            return{
                goodslist:[]
            }
        },
        //方法
        methods:{
            get_goods(){

                this.$axios.get('http://localhost:5000/goods/goods/').then(res=>{
                    console.log(res.data)
                    this.goodslist =res.data.list
                })
            }

        },
        //初始化
        mounted(){
            this.get_goods()
        }

    }
</script>

<style scoped>

</style>
